<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: humeng
  Date: 2022/10/10
  Time: 14:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%!
    Date date = new Date();
    SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
    ArrayList<String> brands = new ArrayList<>();

%>
<%
    brands.add("nike");
    brands.add("鸿星尔克");
    for (int i = 0; i < 26; i++) {
        char a = (char) ('a' + i);
//        System.out.println(a);
%>
<%=a%>
<%
    }
    for (String brand : brands) {

%>
<ul>
    <li>
        <%=brand%>
    </li>
</ul>
</th>

<%
    }

%>

<br>
<%="1+2=" + (1 + 2)%>
<br>

今天的日期是
<%=simpleDateFormat.format(date)%>


</body>
</html>
